#import <Foundation/Foundation.h>

#ifdef DEBUG  // 调试状态
// 打开LOG功能
#define NSLog(...) NSLog(__VA_ARGS__)
#else// 发布状态
// 关闭LOG功能
#define NSLog(...)
#endif

// 颜色
#define Color(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define GlobalBg Color(230, 230, 230)

// 随机色
#define RandomColor Color(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))

#define NotificationCenter [NSNotificationCenter defaultCenter]

extern NSString *const CityDidChangeNotification;
extern NSString *const SelectCityName;

extern NSString *const SortDidChangeNotification;
extern NSString *const SelectSort;

extern NSString *const CategoryDidChangeNotification;
extern NSString *const SelectCategory;
extern NSString *const SelectSubcategoryName;

extern NSString *const RegionDidChangeNotification;
extern NSString *const SelectRegionName;
extern NSString *const SelectSubregionName;

extern NSString *const CollectionStateDidChangeNotification;
extern NSString *const IsCollectKey;
extern NSString *const CollectDealKey;






